package org.blade.service;

import org.blade.client.UserClient;
import org.blade.entity.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController("test")
public class TestService {

	@Autowired
	UserClient userClient;

	@RequestMapping("/{id}")
	public User testQuery(@PathVariable("id") Long id) {
		User user = userClient.findById(id);
		return user;
	}
}
